<template>
  <div class="">
    <van-card
    v-for="(item,index) in $store.state.list2" :key="index"
      :num="item.null"
      :price="item.price"
      :title="item.title"
      thumb="https://img01.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #tags>
        <van-tag plain type="danger">标签</van-tag>
        <van-tag plain type="danger">标签</van-tag>
      </template>
      <template #footer>
        <van-button size="mini">+</van-button>
        <van-button size="mini">-</van-button>
      </template>
    </van-card>

   
  </div>
</template>

<script>
export default {
  data() {
    return {
      list1: this.$route.query.obj,
    };
  },
  mounted() {
    this.$store.commit('add',{list1:this.list1})
  },
  methods: {
  },
  components: {},
};
</script>

<style lang='scss'>
</style>
